#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
# @FileName  :users.py
# @Time      :2022/8/19 18:56
# @Author    :Toliong toliong@foxmail.com
"""
from fastapi import APIRouter

router = APIRouter()


@router.get("/users/", tags=["users"])
async def read_users():
    return [{"username": "Rick"}, {"username": "Morty"}]


@router.get("/users/me", tags=["users"])
async def read_user_me():
    return {"username": "fakecurrentuser"}


@router.get("/users/{username}", tags=["users"])
async def read_user(username: str):
    return {"username": username}
